﻿<navigation:Page 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" x:Class="Galnote.Login.Login"
           mc:Ignorable="d"
           d:DesignWidth="640" d:DesignHeight="480"
           Title="Login Page" Loaded="Page_Loaded_1">

	<UserControl.Resources>
		<Storyboard x:Key="StartTemplate">
			<ColorAnimation To="#FF999999" Duration="0:0:0.5" Storyboard.TargetName="TB1" Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)"/>
		</Storyboard>
		<Storyboard x:Key="EndTemplate">
			<ColorAnimation To="#FFD1D1D1" Duration="0:0:0.5" Storyboard.TargetName="TB1" Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)"/>
		</Storyboard>
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot">

		<Grid Width="280" Height="260" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,100">
			<Grid.RowDefinitions>
				<RowDefinition Height="1*"/>
				<RowDefinition Height="1*"/>
				<RowDefinition Height="1*"/>
				<RowDefinition Height="1*"/>
			</Grid.RowDefinitions>
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="50"/>
				<ColumnDefinition Width="1*"/>
			</Grid.ColumnDefinitions>

			<sdk:Label Target="{Binding ElementName=InputName}" Content="用户名："/>
			<TextBox x:Name="InputName" Grid.Column="1" Style="{StaticResource ResourceKey=InputTBoxStyle}" VerticalAlignment="Center" Margin="12,0" Height="24"/>
			<sdk:Label Grid.Row="1" Target="{Binding ElementName=InputPassword}" Content="密   码："/>
			<PasswordBox x:Name="InputPassword" Grid.Row="1" Grid.Column="1" Style="{StaticResource ResourceKey=InputPwbStyle}" VerticalAlignment="Center" Margin="12,0"/>
			<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right" Grid.Column="1">
				<HyperlinkButton Style="{StaticResource ResourceKey=GenericHBStyle}" Width="75" Height="28" Margin="5" NavigateUri="/Login/Register.xaml">
					<Border BorderBrush="#FFB4B4B4" BorderThickness="1" Background="#FFB4B4B4" Cursor="Hand">
						<TextBlock Text="注   册" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
					</Border>
				</HyperlinkButton>
				<Button  Style="{StaticResource ResourceKey=GenericBtnStyle}" Width="75" Height="28" Margin="5">
					<Border BorderBrush="#FFB4B4B4" BorderThickness="1" Cursor="Hand">
						<TextBlock Text="确   认" HorizontalAlignment="Center" VerticalAlignment="Center"/>
					</Border>
				</Button>
			</StackPanel>
			<HyperlinkButton Grid.Row="3" Style="{StaticResource ResourceKey=GenericHBStyle}" HorizontalAlignment="Right" NavigateUri="/Login/Forgot.xaml" Grid.Column="1">
				<TextBlock x:Name="TB1" Text="忘记密码了吗？" Foreground="#FFD1D1D1" HorizontalAlignment="Right" MouseEnter="TB1_MouseEnter" MouseLeave="TB1_MouseLeave"/>
			</HyperlinkButton>
		</Grid>
	</Grid>
</navigation:Page>
